package com.example.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.example.entity.Rider;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
 * 骑手相关的数据访问接口
 */
public interface RiderMapper extends BaseMapper<Rider> {

    int updateById(Rider rider);

    Rider selectById(Integer id);

    List<Rider> selectAll(Rider rider);

    @Select("select * from rider where username = #{username}")
    Rider selectByUsername(String username);

}